import request from '../utils/request';

export async function create(body) {
  return request('/api/vendor/create', {
    method: 'POST',
    body,
  });
}
export async function findMany(body) {
  return request('/api/vendor/find/many', {
    method: 'POST',
    body,
  });
}

export async function updateOne(body) {
  return request('/api/vendor/update', {
    method: 'POST',
    body,
  });
}
export async function deleteOne(body) {
  return request('/api/vendor/delete', {
    method: 'POST',
    body,
  });
}
export async function findDetail(body) {
  return request('/api/vendor/find/detail', {
    method: 'POST',
    body,
  });
}
export async function findMaterial(body) {
  return request('/api/vendor/find/material', {
    method: 'POST',
    body,
  });
}
